
             
/**
 * 
 *
 * @File name:  QueryTPersonnalAction.java 
 * @Create on:  2011-10-30 23:38:960
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        
package com.boho.estates.staff.action;

            
import java.sql.Connection;
import java.util.*;

import com.boho.common.Constant;
import com.boho.estates.po.*;
import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.po.POUtils;
import cn.boho.framework.service.MessageService;
import cn.boho.framework.exception.UserOperationException;
import cn.boho.framework.utils.DateUtils;
import cn.boho.framework.po.DynaBeanMap;
import cn.boho.framework.po.ComboPager;
import cn.boho.framework.po.Pager;
            
        
import com.boho.estates.staff.dao.TPersonnalDao;

public class QueryTPersonnalAction extends ActionImp {
	private Connection con=null;
	@Override
	protected void doException(ActionContext atx, Exception ex) {
		atx.setErrorContext("BOHO_COMMON_1004", MessageService.getMessage("BOHO_COMMON_1004"),"【人员信息】" ,ex);
	}
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		String departIds  = (String)atx.getSessionValue(Constant.SESSION_DEPART_ARRAY);
		List list=TPersonnalDao.queryTPersonnal(con, departIds);
		atx.setValue("T_PERSONNAL", list.toArray());
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		con = atx.getConection();
		return 1;
	}
}
